package com.dongjiantong.user.service;

import com.dongjiantong.common.model.Response;
import com.dongjiantong.mybatis.BaseService;
import com.dongjiantong.user.model.MzUser;
import com.dongjiantong.user.enums.UserEnum;
import com.dongjiantong.user.model.dtos.OrgUserDto;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 *
 * Created by cao on 2017/11/13.
 * @author
 */
public interface MzUserService extends BaseService<MzUser> {

    /**
     * 根据主键查询人员信息
     * @param keyId
     * @return
     */
    MzUser getMzUser(long keyId);

    /**
     * 用户登录
     * @param username
     * @param password
     * @param userEnum
     * @return
     */
    Response<MzUser> checkLogin(String username, String password, UserEnum userEnum);

    /**
     * 运维人员根据开通的区域查看隐藏的管理员帐号
     * @param regionId
     * @return
     */
    MzUser queryAdminAccount(long regionId);

     PageInfo selectByUserIdList(List<Long> userIdList, String userName,String phone ,Integer role,Integer pageNum, Integer pageSize) ;
}
